package com.hsc.www.integration;

import org.springframework.integration.core.GenericSelector;
import org.springframework.stereotype.Component;

import java.util.Objects;

@Component
public class RegisterMessageFilter implements GenericSelector<User> {
    @Override
    public boolean accept(User user) {
        if (Objects.isNull(user)) {
            return false;
        } else {
            return true;
        }
    }
}